import 'package:flutter/material.dart';

class TopAndBottom extends StatelessWidget{
  final score;
  final name;
  TopAndBottom(this.score,this.name);
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Expanded(
      flex: 1,
      child: Column(
        children: <Widget>[
          Text(score,
            style: TextStyle(
                fontSize: 16,
              color: Colors.white,
            ),
          ),
          Text(name,
            style: TextStyle(
                fontSize: 14,
              color: Colors.white,
            ),
          ),
        ],
      ),
    );
  }

}